package cn.itsource.domain.pet;


import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName(value = "t_pet")
public class Pet   {
    @TableId(type = IdType.AUTO)
    //设置新增成功后，返回 自增长主键值
    private Long id;
    private Long adoptId;
    private String name;
    private String resources;
    private BigDecimal saleprice;
    private BigDecimal chuxiaoPrice;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date offsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date onsaletime;
    private Integer state;
    private Integer age;
    private Date createTime;
    private Long typeId;
    private Long shopId;
    private Long userId;
    private BigDecimal costprice;
    private String resourceType;
    private Boolean del;
    //@Transient
    //PetDetail petDetail;


//    private TPetDetail detail; //关联宠物详情信息


}
